#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlError>


namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_action_Open_triggered();

    void on_action_Open_hovered();

    void on_action_Close_hovered();

    void on_action_Close_triggered();

    void on_action_Exit_triggered();

    void on_actionPhoton_count_hovered();

    void on_actionPhoton_count_triggered();

private:
    Ui::MainWindow *ui;
    bool DatabaseOpen;
    QSqlDatabase Db;
};

#endif // MAINWINDOW_H
